/* 
 *  <copyright file="Math.cs" company="Wesley Jowitt">
 *  
 *  SobrietyEngine: Copyright (c) 2011 Wesley Jowitt
 *  
 *  This software is distributed under a software license.
 *   * As of the creation time of this file, the license in use is the Microsoft Permissive License (Ms-PL) 
 *    * The license can be viewed at:
 *     * License.Txt in the root folder of this project
 *      * http://sobrietyengine.codeplex.com/license
 *       * http://www.microsoft.com/opensource/licenses.mspx
 *       
 *  </copyright>
 *   */



namespace SobrietyEngine.Common
{
    static public class CommonMath
    {
        static public float DegreesToRadians(float degrees)
        {
            return (((float)System.Math.PI / 180) * degrees);
        }

        static public float RadiansToDegrees(float radians)
        {
            return ((180 / (float)System.Math.PI ) * radians);
        }
    }
}